<?php echo $this->doctype() ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"></meta>
  <title>Zend Framework Quickstart Application</title>
  <?php echo $this->headLink()->appendStylesheet('/box/design/css/global.css') ?>
  <?php echo $this->headScript()->appendFile('/box/design/js/jQuery.js') ?>
  <?php echo $this->headScript()->appendFile('/box/design/js/utility.js') ?>
  <?php echo $this->headScript()->appendFile('/box/design/js/provincesdata.js') ?>
  <script src="http://api.amap.com/webapi/init?v=1.1" type="text/javascript"></script>
  <script type="text/javascript">
    $(function(){
		$("#province_select").ProvinceCity();
	});
  </script>
</head>
<body onload="initialize()">
<div><img src="/box/design/img/bg_index.jpg"  id="bg_img"></img></div>
<div id="bg_pattern"></div>
<div id="header" style="">
    <div id="header-logo" style="float: left">

    </div>
    <div id="header-navigation" style="float: right">

    </div>
</div>
<div id="menu">
<div id="logo"></div>

<div id="menu_nav">
<ul>
<li><a href="<?php echo $this->url(
            array('controller'=>'index','action'=>'index'),
            'default',
            true) ?>">首页</a></li>
<li><a href="<?php echo $this->url(
            array('controller'=>'subscribe','action'=>'index'),
            'default',
            true) ?>">查询快递</a></li>
<li><a href="<?php echo $this->url(
            array('controller'=>'map','action'=>'index'),
            'default',
            true) ?>">查询网点</a></li>
<?php
$auth = Zend_Auth::getInstance();

if(!$auth->hasIdentity()):?>

<li><a href="<?php echo $this->url(
            array('controller'=>'user','action'=>'login'),
            'default',
            true) ?>">登录</a></li>
<li><a href="<?php echo $this->url(
            array('controller'=>'registration','action'=>'index'),
            'default',
            true) ?>">注册</a></li>
<?php else:?>
<li><a href="<?php echo $this->url(
            array('controller'=>'dashboard','action'=>'index'),
            'default',
            true) ?>">控制面板</a></li>
<li><a href="<?php echo $this->url(
            array('controller'=>'deliver','action'=>'index'),
            'default',
            true) ?>">寄件</a></li>
<?php endif;?>


</ul>
</div>


</div>
 
<?php echo $this->layout()->content ?>
<div id="footer">
<div class="footer_link">
<ul>
<li><a>服务条款</a></li>
<li><a>计费协议</a></li>
<li><a>联系我们</a></li>
</ul>

</div>
<div id="copyright">&copy;上海复幻科技有限公司</div>
</div>
</body>

</html>